/*! org-wiki by @fosonmeng
 * https://gitee.com/fosonmeng/org-wiki
 */
@mixin link-button {
  padding: 3px 5px;
  border-radius: 2px;
  background: #c72100;
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font: .8rem/1.2 sans-serif;
}

html,
body {
  font-size: 14px;
  background: #fafafa;
  background-image: url(unquote("../imgs/bg.jpg"));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  @media (max-width: 960px) {
    background-image: none;
  }
}

body {
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  min-height: 100vh;
  background: #fff;
  box-shadow: 4px 0px 8px -6px #000;
}

a {
  color: #c72100;
}

.tag {
  font: .8rem/1.2 monospace;
  display: inline-block;
  padding: 1px 2px;
  border-radius: 2px;
  box-shadow: 1px 1px 1px -1px #000;
  background: #0066cc;
  color: #eee;
}

table {
  border-collapse: collapse;
}

th,
td {
  padding: 3px 5px;
  border: 1px solid #e0e0e0;
}

th {
  background: #eee;
}

h2,
h3,
h4,
h5,
h6 {
  border-bottom: 1px solid transparent;
}

code {
  display: inline-block;
  background: #eee;
  color: #0066cc;
  font: .9em/1.2 monospace;
  padding: 1px 3px;
  border-radius: 2px;
}

#postamble {
  padding: 1rem 1rem 3rem;
  font: 0.8rem/1.3 sans-serif;
  margin-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.validation>a {
  @include link-button;
  margin-top: 1rem;
}

#content {
  font: .9rem/1.5 serif;
}

h1.title {
  margin: 0;
  padding: 2rem 1rem 1rem;
  margin-bottom: 2rem;
  text-align: left;
  font: 900 2rem/1 sans-serif;
  border-bottom: 1px solid #e0e0e0;
}

#text-before-first-headline {
  margin: 0;
}

#content>div[id^=outline-container-],
#table-of-contents,
#footnotes {
  padding: 0 1rem;
  position: relative;
}

#footnotes {
  border-top: 1px solid #222;
}

#org-info-js-window>:not(table):not(h1):not(ul):not(ol) {
  box-sizing: border-box;
  padding: .5rem 1rem;
}

.org-info-js_info-navigation a {
  font-family: sans-serif;
}

pre {
  margin: 1rem 0;
  background: #f7f7f7;
  font: .8rem/1.3 monospace;

  &.example {
    color: #810;
  }

  &.src-bash {
    background: #222;
    color: #eee;

    &::before {
      color: #000;
    }
  }

  &,
  &.example,
  &.src {
    overflow: auto;
    max-height: 24rem;
  }
}

.timestamp {
  font-size: 80%;
}

#org-div-home-and-up {
  font: .7rem/1.2 sans-serif;
  margin-bottom: 1rem;
}

// vim: set tabstop=2 shiftwidth=2 softtabstop=2 expandtab :
